<!DOCTYPE html>
Open DevTools and click the button.
<button id="mainbtn" class="btn btn--big">Click me</button>
<script src="https://unpkg.com/comlink@alpha/dist/umd/comlink.js"></script>
<!-- <script src="../../../dist/umd/comlink.js"></script> -->
<script src="./event.transferhandler.js"></script>
<script>
  const worker = new Worker("worker.js");
  const api = Comlink.wrap(worker);

  document
    .querySelector("#mainbtn")
    .addEventListener("click", api.onclick.bind(api));
</script>
